package com.ncu.gulimall.seckill.service;

import com.ncu.gulimall.seckill.to.SecKillSkuRedisTo;

import java.util.List;

public interface SecKillService {
    void uploadSeckillSkuLatest3Days();

    /**
     * 返回当前时间可以参与秒杀的商品信息
     */
    List<SecKillSkuRedisTo> getCurrentSeckillSkus();

    /**
     * 获取商品的秒杀预告信息
     *
     * @param skuId
     * @return
     */
    SecKillSkuRedisTo getSkuSeckillInfo(Long skuId);

    String kill(String killId, String key, Integer num);
}
